package com.leyou.search.entity;

import com.leyou.item.entity.Brand;
import com.leyou.item.entity.Category;
import com.leyou.item.entity.SpecParam;
import com.leyou.item.vo.PageResult;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author linzx
 * @date 2020/3/27
 */
@Data
public class SearchResult extends PageResult<Goods> {
    private List<Category> categories;
    private List<Brand> brands;
    private List<Map<String,Object>> specs;

    public SearchResult() {
    }

    public SearchResult(Long total, Integer totalPage, List<Goods> item, List<Category> categories, List<Brand> brands, List<Map<String,Object>> specs) {
        super(total, totalPage, item);
        this.categories = categories;
        this.brands = brands;
        this.specs = specs ;
    }

}
